package com.pig4cloud.pig.module.service.base.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.module.api.entity.SignRole;
import com.pig4cloud.pig.module.mapper.SignRoleMapper;
import com.pig4cloud.pig.module.service.base.ISignRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 签到规则Service业务层处理
 *
 * @author ruoyi
 * @date 2022-06-13
 */
@Service
public class SignRoleServiceImpl extends ServiceImpl<SignRoleMapper, SignRole> implements ISignRoleService {

	@Resource
	private SignRoleMapper signRoleMapper;

	@Override
	public SignRole getRoleByDayIndex(int dayIndex) {
		SignRole signRole = signRoleMapper.selectOneByColumn("day_index",dayIndex);
		return signRole;
	}
}
